// 神话世界·西游记·版本４．５０
/* <SecCrypt CPL V3R05> */
 
#include <weapon.h>

inherit THROWING;

void create()
{
        set_name("毒蒺黎", ({"poison dart", "dart"}));
        if( clonep() )
                set_default_object(__FILE__);
        else {
                set("unit", "把");
                set("base_unit", "枝");
     set("long", "铁打的蒺黎锋利无比，刃上闪现绿色，显是喂了毒药。\n");
                set("base_weight", 40);
     set("value", 20);
                set("base_value", 5);
        }
        set_amount(20);
        init_throwing(15);
        setup();
}
mixed hit_ob(object me, object victim, int damage_bonus)
{
        if( damage_bonus < 0 ) return 0;
   victim->apply_condition("root_poison", 3);
   message_vision("$N中了毒蒺黎上的蟥芦草毒！\n", victim);
}

